package com.taxi.controller;

import com.taxi.result.Result;
import com.taxi.service.PayService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: aniu
 * @Date: 2023/10/11
 * @ClassName: PayController
 * @Description: Write class functionality and purpose here.
 * @Version: 1.0
 */
@RestController
@RequestMapping("/pay")
public class PayController {

    @Autowired
    private PayService payService;

    @ApiOperation("司机发起收款")
    @PostMapping("/push-pay-info")
    public Result pushPayInfo(@RequestParam Long orderId,@RequestParam String price,@RequestParam Long passengerId){
        return payService.pushPayInfo(orderId,price,passengerId);
    }
}
